<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>考神驾到手机站专项练习</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" type="text/css" href="css/public.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/windowsheight.js"></script>

    <script src="${pageContext.request.contextPath}/manager_page/layui/layui.js"></script>
</head>

<body>

<input type="hidden" id="question_class_hide" value=${param.question_class_hide} >

<!-----------头部开始--------------->
<%@ include file="page_head.jsp" %>
<!-----------头部结束--------------->


<!-----------内容开始--------------->
 <div class="content">
   <div class="newdetailcon">
      <div class="biaoti"><img src="images/libg_06.jpg"><span id="according_class">按内容类型</span></div>
   </div>
   <div class="errors_change">
       <div id="keyi_special_exercise" hidden="hidden">
           <ol class="chapter_ul" id="keyi_class_ol_1">
               <li><a href="javascript:to_chapter_exercise_with_special_param('文字题');"><span>1.</span>文字题<b>（<label id="keyi_class_1">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('图片题');"><span>2.</span>图片题<b>（<label id="keyi_class_2">0</label>题）</b></a></li>
           </ol>
           <ol class="chapter_ul" id="keyi_class_ol_2">
               <li><a href="javascript:to_chapter_exercise_with_special_param('判断题');"><span>1.</span>判断题<b>（<label id="keyi_class_3">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('单选题');"><span>2.</span>单选题<b>（<label id="keyi_class_4">0</label>题）</b></a></li>
           </ol>

<%--           •速度题（60题）•标志题（276题）•标线题（88题）•灯光使用题（99题）•高速公路题（77题）•安全常识题（68题）•道路通行原则题（83题）•--%>
<%--           特殊天气题（38题）•文明驾驶题（126题）•易混标志题（70题）•易混指示灯题（22题）•意外事故处理题（55题）•责任判定题（96题）•驾驶证相关题--%>
<%--           （130题）•现场急救题（33题）•扣分罚款题（104题）•仪表、指示灯题（116题）•普通路段题（64题）•特殊路段题（69题）•交通信号灯题（75题）--%>
<%--           •交警手势题（14题）--%>
           <ol class="chapter_ul" id="keyi_class_ol_3">
               <li><a href="javascript:to_chapter_exercise_with_special_param('速度题');"><span>1.</span>速度题<b>（<label id="keyi_class_5">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('标志题');"><span>2.</span>标志题<b>（<label id="keyi_class_6">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('标线题');"><span>3.</span>标线题<b>（<label id="keyi_class_7">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('灯光使用题');"><span>4.</span>灯光使用题<b>（<label id="keyi_class_8">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('高速公路题');"><span>5.</span>高速公路题<b>（<label id="keyi_class_9">0</label>题）</b></a></li>


<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>6.</span>安全常识题<b>（<label id="keyi_class_10">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>7.</span>道路通行原则题<b>（<label id="keyi_class_11">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>8.</span>特殊天气题<b>（<label id="keyi_class_12">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>9.</span>文明驾驶题<b>（<label id="keyi_class_13">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>10.</span>易混标志题<b>（<label id="keyi_class_14">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>11.</span>易混指示灯题<b>（<label id="keyi_class_15">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>12.</span>意外事故处理题<b>（<label id="keyi_class_16">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>13.</span>责任判定题<b>（<label id="keyi_class_17">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>14.</span>驾驶证相关题<b>（<label id="keyi_class_18">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>15.</span>现场急救题<b>（<label id="keyi_class_19">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>16.</span>扣分罚款题<b>（<label id="keyi_class_20">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>17.</span>仪表、指示灯题<b>（<label id="keyi_class_21">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>18.</span>普通路段题<b>（<label id="keyi_class_22">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>19.</span>特殊路段题<b>（<label id="keyi_class_23">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>20.</span>交通信号灯题<b>（<label id="keyi_class_24">0</label>题）</b></a></li>--%>
<%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>21.</span>交警手势题<b>（<label id="keyi_class_25">0</label>题）</b></a></li>--%>
<%--               --%>

           </ol>
       </div>
       <div id="kesi_special_exercise" hidden="hidden">
           <ol class="chapter_ul" id="kesi_class_ol_1">
               <li><a href="javascript:to_chapter_exercise_with_special_param('文字题');"><span>1.</span>文字题<b>（<label id="kesi_class_1">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('图片题');"><span>2.</span>图片题<b>（<label id="kesi_class_2">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('动画题');"><span>3.</span>动画题<b>（<label id="kesi_class_3">0</label>题）</b></a></li>
           </ol>
           <ol class="chapter_ul" id="kesi_class_ol_2">
               <li><a href="javascript:to_chapter_exercise_with_special_param('判断题');"><span>1.</span>判断题<b>（<label id="kesi_class_4">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('单选题');"><span>2.</span>单选题<b>（<label id="kesi_class_5">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('多选题');"><span>3.</span>多选题<b>（<label id="kesi_class_6">0</label>题）</b></a></li>
           </ol>

           <ol class="chapter_ul" id="kesi_class_ol_3">
               <li><a href="javascript:to_chapter_exercise_with_special_param('速度题');"><span>1.</span>速度题<b>（<label id="kesi_class_7">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('标志题');"><span>2.</span>标志题<b>（<label id="kesi_class_8">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('标线题');"><span>3.</span>标线题<b>（<label id="kesi_class_9">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('灯光使用题');"><span>4.</span>灯光使用题<b>（<label id="kesi_class_10">0</label>题）</b></a></li>
               <li><a href="javascript:to_chapter_exercise_with_special_param('高速公路题');"><span>5.</span>高速公路题<b>（<label id="kesi_class_11">0</label>题）</b></a></li>


               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>6.</span>安全常识题<b>（<label id="kesi_class_12">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>7.</span>道路通行原则题<b>（<label id="kesi_class_13">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>8.</span>特殊天气题<b>（<label id="kesi_class_14">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>9.</span>文明驾驶题<b>（<label id="kesi_class_15">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>10.</span>易混标志题<b>（<label id="kesi_class_16">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>11.</span>易混指示灯题<b>（<label id="kesi_class_17">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>12.</span>意外事故处理题<b>（<label id="kesi_class_18">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>13.</span>责任判定题<b>（<label id="kesi_class_19">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>14.</span>危险化学品题<b>（<label id="kesi_class_20">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>15.</span>现场急救题<b>（<label id="kesi_class_21">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>16.</span>扣分罚款题<b>（<label id="kesi_class_22">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>17.</span>仪表、指示灯题<b>（<label id="kesi_class_23">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>18.</span>普通路段题<b>（<label id="kesi_class_24">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>19.</span>特殊路段题<b>（<label id="kesi_class_25">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>20.</span>交通信号灯题<b>（<label id="kesi_class_26">0</label>题）</b></a></li>--%>
               <%--               <li><a href="javascript:to_chapter_exercise_with_special_param('',0,0);"><span>21.</span>交警手势题<b>（<label id="kesi_class_27">0</label>题）</b></a></li>--%>
               <%--               --%>
           </ol>
       </div>
   </div>
   <div class="pageturn">
     <div class="prepage"><a href="javascript:lastPage();">&lt; 上一页</a></div>
     <p><span><b id="current_page">1</b>/2</span></p>
    <div class="prepage"> <a href="javascript:nextPage();">下一页 &gt;</a></div>
   </div>
 </div>
 <!-----------内容结束--------------->
 <div class="footer">
   <p>©考神驾到版权所有</p>
   <span>www.kaoshenjiadao.com</span>
 </div>
 
</body>

<script>
    var layer;
    layui.use('layer',function(){
        layer=layui.layer;
    })

    var question_class_hide=$("#question_class_hide").val();

    if(question_class_hide=="科一"){

        //改变标题
        $("#page_head_title").text("科一专项练习");

        $("#keyi_class_ol_2").attr("hidden","hidden");
        $("#keyi_class_ol_3").attr("hidden","hidden");
        $("#keyi_special_exercise").removeAttr("hidden");

    }else{

        //改变标题
        $("#page_head_title").text("科四专项练习");

        $("#kesi_class_ol_2").attr("hidden","hidden");
        $("#kesi_class_ol_3").attr("hidden","hidden");
        $("#kesi_special_exercise").removeAttr("hidden");
    }

    window.onload=function(){
        changeSpecialNum(question_class_hide);

    }

    function changeSpecialNum(question_class){
        $.ajax({
            url:"${pageContext.request.contextPath}/front_question/change_special_num.do",
            data:{
                "question_class":question_class
            },
            success:function (data,status){
                if(status=="success"){
                    var id_head="#keyi_class_";
                    if(question_class=="科四")
                        id_head="#kesi_class_";
                    for(var i=0;i<data.length;i++){
                        var j=i+1;
                        var id=id_head+j;
                        $(id).text(data[i]);
                    }
                }
            }
        })
    }

    function lastPage(){
        var current_page=parseInt($("#current_page").text());
        if(current_page<=1){
            layer.msg("这已经是第一页了")
        }else{
            if(question_class_hide=="科一") {
                $("#keyi_class_ol_1").attr("hidden","hidden");
                $("#keyi_class_ol_2").attr("hidden","hidden");
                $("#keyi_class_ol_3").attr("hidden","hidden");
            }else{
                $("#kesi_class_ol_1").attr("hidden","hidden");
                $("#kesi_class_ol_2").attr("hidden","hidden");
                $("#kesi_class_ol_3").attr("hidden","hidden");
            }
            if(current_page==2){
                $("#according_class").text("按内容类型");
                if(question_class_hide=="科一"){
                    $("#keyi_class_ol_1").removeAttr("hidden");
                }else{
                    $("#kesi_class_ol_1").removeAttr("hidden");
                }
            }
            if(current_page==3){
                $("#according_class").text("按试题类型");
                if(question_class_hide=="科一"){
                    $("#keyi_class_ol_2").removeAttr("hidden");
                }else{
                    $("#kesi_class_ol_2").removeAttr("hidden");
                }
            }


            current_page--;
            $("#current_page").text(current_page);
        }
    }

    function nextPage(){
        var current_page=parseInt($("#current_page").text());
        if(current_page>=2){
            layer.msg("这已经是最后一页了")
        }else{
            if(question_class_hide=="科一") {
                $("#keyi_class_ol_1").attr("hidden","hidden");
                $("#keyi_class_ol_2").attr("hidden","hidden");
                $("#keyi_class_ol_3").attr("hidden","hidden");
            }else{
                $("#kesi_class_ol_1").attr("hidden","hidden");
                $("#kesi_class_ol_2").attr("hidden","hidden");
                $("#kesi_class_ol_3").attr("hidden","hidden");
            }
            if(current_page==1){
                $("#according_class").text("按试题类型");
                if(question_class_hide=="科一"){
                    $("#keyi_class_ol_2").removeAttr("hidden");
                }else{
                    $("#kesi_class_ol_2").removeAttr("hidden");
                }
            }
            if(current_page==2){
                $("#according_class").text("按知识点类型");
                if(question_class_hide=="科一"){
                    $("#keyi_class_ol_3").removeAttr("hidden");
                }else{
                    $("#kesi_class_ol_3").removeAttr("hidden");
                }
            }


            current_page++;
            $("#current_page").text(current_page);
        }
    }

    function to_chapter_exercise_with_special_param(other_class){
        $.ajax({
            url:"${pageContext.request.contextPath}/front_other/check_login.do",
            success:function(data,status){
                if(status=="success"){
                    if(data==0)
                        layer.alert("为保留您的做题记录，请您先登录");
                    else
                        window.location.href="chaptertest.jsp?question_class_hide="+$("#question_class_hide").val()
                            +"&other_class="+other_class;
                }
            }
        })
    }
</script>

















<!--头部高度赋给列表的topjs-->
<script>
   var heighttop=$(".top").height();
   $(".topmenu").css("top",heighttop);
    $(".menumore").toggle(function(){
	     $(".topmenu").show(); 
	   },function(){
	     $(".topmenu").hide(); 
	 	   })
   $(".buttontop").click(function(){
	     $(".topmenu").hide();  
	   })
	   
 $(function(){
	 $(".tasecartop span a").click(function(){
		  var $banktip=$(this).attr("tip");
		  $($banktip).show().siblings().hide();
		  $(".tasecartop span a").removeClass("payaclik");
		  $(this).addClass("payaclik");
		 })
	
	})
	/*模拟考试列表分类车型选择tab切换*/
 $(function(){
	 $(".test_onelist li a").click(function(){
		  var $banktip=$(this).attr("tip");
		  $($banktip).show().siblings().hide();
		  $(".test_onelist li a").removeClass("testcaraclick");
		  $(this).addClass("testcaraclick");
		 })
	
	})
	
 </script>
 
<!--头部高度赋给列表的topjs-->
<!--banner将图片的高度赋给父级扪js-->
<script>
   var heighta=$("#incltialiu li:eq(0) img").height();
   $(".main,.width,#incltialiu").height(heighta) ;
 </script>
 <!--banner将图片的高度赋给父级扪js-->
<!--首页标题点击出现更多分类js-->
 <script>
	$(".titlemore").toggle(function(){
		$(this).parent(".tabtila").siblings(".moresort").show()
		$(this).children("img").attr("src","images/title_692.jpg")
		},function(){
		$(this).parent(".tabtila").siblings(".moresort").hide()
		$(this).children("img").attr("src","images/title_69.jpg")
		})
  </script>
 <!--首页标题点击出现更多分类js-->
</html>
